<?php
$T->loadTpl("./html/".$template."/".$qname.".html");
$T->SetTpl('cssjs','html/cssjs.inc');
$T->SetTpl('jsmodel','html/jsmodel.inc');

if (empty($_SESSION['uid'])) {
    $tips = array(
        'tips' => '请登录后再进行操作',
        'url' => 'index.php'
    );
    $tips = urlencode(serialize($tips));
    header('Location:/tips.php?gets=' . $tips);
    exit;
}
$user_id = $_SESSION['uid'];
$takes_id = $_GET['id'];
$T->Set("id",$takes_id);
$T->Set("template",$template);
$T->clearNoN();
$T->display(); 